Improved documentation.
Refactored deferred variable names to be more readable.
Removed unnecessary use of deferred.