Adding ifundef to allow overriding the maximum number of points