Added in a schedule update function.