Learning the 'Stop-Think-Act' model for impulse control.