setAIMode accepts Speed as well