* Various AI fixes.