Utility Function In Ai