Converted to use routes.