Added non-recursing class visitor.