Convert all asynchronous send to synchronous send code for more simplicity