Adding merge and overwrite mode to set_info