Added compact print and send data error checking