Refactor continuation.