Fixed message length and type reading (now reads a byte array instead of a String)