Made scheduler configurable