Now using the tmp module for generating temporary files