Moved CalcGamma to submodule