When the button title is Run, the program is stopped, and clicking the button will start the program running. The title then switches to Stop, and the next click will stop the program.