Adding getLargest function.