Got 1D arrays working