Implement trampoline.

Closes #231.