removed $batchID from function argument.