Generate temp file name instead of hard coding.