globalRet and localRet now work on cluster. Finally was able to make checkTruePos work on nodes