According to Charles Duhigg, routine is one of three steps to building lasting habits. There is a cue (or trigger), then the routine, then a reward. The three steps create a reenforcing loop which as a hole is the habit.