Added method when adding a route.
Minor edit solves -> solve. Ow.