Added findMaxValue