There is no dearth of advice as to the desirability of giving up evil thoughts and replacing them by sublime ones. But very little has been said about how to bring it about. And not unnaturally so, since the 'how' is more a matter of experience and practice than of words. There is a simple way of changing the flow of the secretions - resorting to long breaths. As breathing slows down, the consciousness gets pitched into the present.
Breathing exercise is therefore the best way to achieve the goal.
Having known the secret of living in the present, of keeping consciousness confined to the present, he will automatically master the art of controlling the endocrinal secretions. He will be able to alter them at will. Should he find lust overcoming him, he should at once start taking long breaths. Both the pituitary and the pineal will get oriented to the present and lust will first weaken and then altogether disappear. Whatever and howsoever strong be the passion or base disposition, it can be successfully and effectively countered through resort to long breaths, body-perception and perception of and concentration on the centre of consciousness, especially the tip of the nose, the centre of the eyebrows and the forehead.