Improves inheritance checking