Modify router logic.