Make fewer assumptions about class structure.