Adding methods to create named temporary files.