keeping configureNumTasks for backward compatibility.