Implemented basic state resume.