Added code for batch buttons.