How to control the mind