Renamed type.deferred to type.defer. Made .promise() a property.