Added TogglePause and made isPaused private