Removed sys_get_temp_dir() because it seems to be unnecessary.