Added pauseAll and resumeAll methods