We cannot always control our thoughts, but we can control our words, and repetition impresses the subconscious, and we are then master of the situation.
Every great work, every great accomplishment, has been brought into manifestation through holding to the vision, and often just before the big achievement, comes apparent failure and discouragement.