Replaced max call of sections of data with a manual max.