Added SCHEDULE variable (bug fix).