functions to be called from AI added