Added add_child function.