Added support for suspend and resume (Closes #82)