Added a new function to AI master function.
Added number of cores to AI feature.