Handling suspend/resume.