Moved min cores out of the task, better to manage at the layer level.