Sped up document generation dramatically