Fixed issues with Pausing.