Remove stale variable.
Implement parallelism while generating the gallery.