Some AI improvements.