Add some documentation for the preBatchAction method