Updated resuming code for serial codepath.