Added paused state variable.