Added ability to read data from byte array