Properly handle inheritance.