Now supports adding keys to child classes.