In the following code, I would like to have a control button to initiate and stop the following events: