Add multicore support for APEL