Constrain the type the scheduler can take