Implemented suspend/resume and step handling.