Modify for inheritance.