Changed N_y to N_x in iterator initialisations