Partial transition to continuation passing