Updated error in output scripts which caused memory dumps to fail.
Incrementally fixing errors. Next up: completely rewriting the outputs.