Removed the function, attach_ref_table since it is no longer used