Renamed numberOfPoints to maxNumberOfPoints