Added start/stop button functionality.