Split inputs better
Format data into an array of arrays