Added PauseState functionality