Removed setting of batchid as it is unneeded.