Adds route preprocessing.