Changed how continuations are implemented.