Clarified AI with some cleanup.