Changed route namespaces, refactored an error.