anchor.diff:  -define(Threshold, get_temp_file_path("threshold")).
   %% record the store the ets/dets table names.
   
  +find_homedir() ->
  +    case os:getenv("HOME") of 
  +        false ->
  +            %% are we on Windows?
  +            case {os:getenv("HOMEDRIVE"),os:getenv("HOMEPATH")} of
  +                {false, _} -> false;
  +                {Drive, false} -> Drive;
  +                {Drive, Path} -> Drive ++ Path
  +            end;
  +        Path ->
  +            Path
  +    end.
  +
   get_temp_file_path(Tab) ->
  -    list_to_atom(case wrangler_ast_server:get_temp_dir() of
  -			 none ->
  -			     "none";
  -			 Dir ->filename:join(Dir, Tab)
  -		     end).
  +    list_to_atom(case find_homedir() of
  +                     false ->
  +                         "none";
  +                     Dir ->
  +                         filename:join([Dir, ".wrangler","temp", Tab])
  +                 end).
   -record(tabs, 
   	{ast_tab,
   	 var_tab, 
  
positive.code: -export([inc_sim_code_detection/8, 
  	 inc_sim_code_detection_in_buffer/8]).
  
  %% API for eclipse use.
  -export([inc_sim_code_detection_eclipse/8]).
  
  %% API for command line use.
  
negative.code: %%       between Ets and Dets                                 %%
  %%                                                            %%
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  from_dets(Ets, Dets, Inc) when is_atom(Ets) ->
      EtsRef = ets:new(Ets, [set, public]),
      case Inc of
  