Added max and min via aggregate