Switched to regex for routename. Still needs an error message.