Tweaked and improved AI.