Found a bug with sub-class detection. In short, it is not working.

It requires some thought.