Implemented inherit_only attribute, closes #1