Add helper for creating a deferred