Changed communication to use readBytes() instead of parseInt()