Added new addgoal function in ant Intrinsic