Adds routing functionality