Started work on storing and restoring the state of a coroutine