Function Refactoring on Sender and Receiver