Changed temp file assignment