More boilerplate.

Added a simple deferred implementation, and a basic testcase.