Data is being received, the for loops are messing it up. Debugging