Refactored send methods to reduce code duplication and other code cleanup.