route method

Accidently took out function, added it back in.