Adding scheduler