Wait for collate to finish.