Add some comments and more logs to clarify the inheritance behaviors.