Added "working" AI.  Improved detection.