Fixed so private classes are properly excluded.