Update parse_coords to make sanity checks