Can be moved up to avoid useless computation when only one point.