Refactor pause/resume reading