Refactored sending method