CPP : Add some function to work for AI