Updated bin2struct in adding-search as well