added runForgmma function.