Tweaking when keyForParent is set so populateData can access it.