Detect subclasses