Histfit function added