Now attaching parents correctly.