Another mainFun.R update