Added constructor to route collection to accept config