Fixed order of arguments in call to scheduler.init()