Use coordinate since getCoordinate is deprecated