Allow router to be provided