Generate files in temporary direcdtory