Now performs basic scan in y direction