Modified send method in client