Fix unused params in add_collection function