Varietad KlG in Gams