Added pause/resume.