Refactor scheduling actions to methods. Repeat methods for number of threads in threadpool