Sped up report generation by a thousand times (probably)