Add check for reading coordinate file