Reworked to run from a writable working directory.