Making ai_next field public