Add clear temp file function