Allows custom control of pause/resume.