Notes on how to use deferred