Updated for new AIToolbox version