Fixed ordering of route functions.