Function getVariants