Fix a scheduler bug, and add a dummy scheduler for testing purposes.