Added PauseFunc and ResumeFunc.