Add an extra argumento to the main, extract the Scheduler from this
project