Function in Hatma