adding multicore ability.