Added appendchild call.