Add multicore support.