Add temporary file. Delete lock orientation