Added the ability to pass the parent into the child constructor.