Semi-combined the generate and pack steps for generation
Sped up collection.select