added pauseTask and resumeTask