Changed the program to send numbers instead of char buffers where possible.