Modified jojoVariant.cpp