Swapped rows and columns to match co-ordinates.