Refactored a method that took 12h+ to execute, now does it in batches and with a lot more settings