Implemented new AI.