New main with scheduler template
Scheduler warning bugfix