Work on register context and resume.