Added AI stuff.