Renamed min as findMin.