Refactoring scheduler to processor (because now it supports scheduling
and dispatching (it did before, but was unnamed))