Fixed addAsset to return id