Add delegate methods for pausing and ending.