Supposedly uses temp file