New version of add_box func