Refactored continuations to support meta continuation and prompt