Factor out scheduling fns. into separate file