Willpower is also big. When ever I had the urge I had to remind myself of all the reasons I wanted to quit in the first place. My vice was smoking but I think the reasons for wanting to quit are probably the same. 15 years smoke free now after several relapses.