Having a routine though, even a very flexible routine, has been very effective. Things become automatic. Settling into an effective routing often involves not worrying too much about discipline, though. It's easier for people to get to the gym everyday if the goal is "get to the gym, and do something" than it is if the goal is "get to the gym and do a rigorous 2 hour workout." Small steps and environmental changes, as well as not stressing over what's optimal, have been the most effective approaches in my experience.