Added a lot of function related to ai