Add MIN and MAX aggregates.