Make coordinate reader more foolproof