Added conversion to byte array