Switched HashMap to THashMap, capped chunks to 3000 and tweaked formatting.