Find smallest value function added.