Added a check on uniqueness of asset_ref