Revert "Scheduler"

This reverts commit d86f090a98c47d83050e2fbb53252255975dc9cc.
Revert "Revert "Scheduler""

This reverts commit 1012b0d9c985b98655affbd3de655e85943affbe.