Use Qbatch functions for batch processing