* Submit jobs in batches and wait for each batch, to avoid overflowing the queue