Added consistency test after reading the coordinates.