Functionality to add or delete the variant