Changed addChild method