Various minor improvements, configurable scheduling window.
Add an example.