Added a coherent routine for sending data.