Change input to array of byte arrays