Updated to use isSubclassOfModule