A much more sane implementation of generating the manifest.