Removed null assignment in case of batch processing.