Added temp file support.