On the one hand, the repetition involved in habit is supposed to be explained by the desire to reproduce a pleasure obtained; on the other hand, it is supposed to concern tensions which are disagreeable in themselves, but may be mastered with a view to obtaining pleasure.