Modified send and recv.