Add method to get a tmp file