Adding substructure library