Had to do a variant class to deal with three arguments rather than two. But if there's a better way to do it than this, I am all ears.