Adding route functions.