Add inheritance for subpackages