Fixed the pause button to work.