Changed isClass for direct output