XML router now uses config object passed in through constructor.