Implemented a stop button.