Add "stop" function to pause_callback