Updated with core AI functionality.