Implement rudimentary scheduler