CHANGED stuff to allow ai functionality