Wouldn't it be better to return the scheduler as a separate data ?