Added $routes property to fix problem where no services are defined, and an exception is thrown