Adding getKeys() and getChildren() functions