Refactor: Rolled back back to get format_output method back, which made it easier to implement batch processing. Implemented extremely basic batch process for a bit of a speed improvement at the cost of uglier and more complex code. Was it worth it?
Refactor: Functionally the same, but code is easier to read from top to bottom now.