Edited add_object