Removed unneccessary variable "batchmode" since it can be derived from actionMode.