Simplified to use the /tmp/ directory