Updated to the newest version of minFunc.