Stop-Signal task

You can make the execution of routines conditional on some variable, e.g.