Preliminary AI stuff.