Add minimum, maximum, sum and product functions