Finish catching up with current gmetric calling convention. issue #10

The 'var' at the top also needs to be named Gmetric. This version seems to work for me.