MAX() moved to utils.h