Add constructor to Deferred.

Fixes #293