Implement pause/resume.