jar file now works correctly. Need to test on Mgrid