Added a pseudo-coroutine implementation.