Reorders method definitions to be more like the order of operations.
Handles cases where route matching fails.

Thanks for your suggestions @joris & @mrfoto!