Add function of function min finder