Changed loader so that temp files are copied into a directory of their own.