Added maximum data points variable.