Refactored children accessor and node/link key functions as parameters