Changed generated data from string to byte array