Reduced nesting.
Updated documentation.
Updated parameter name.