Added MAX aggregate.