anchor.diff:  			    case NotFinished of
   				{nomatch,Rest} ->
   				    %% One expect
  -				    teln_expect1(Name,Pid,Rest++Data1,Pattern,[],EO1);
  +				    teln_expect1(Name,Pid,Rest++Data1,
  +						 Pattern,[],EO1);
   				{continue,Patterns1,Acc1,Rest} ->
   				    %% Sequence
  -				    teln_expect1(Name,Pid,Rest++Data1,Patterns1,Acc1,EO1)
  +				    teln_expect1(Name,Pid,Rest++Data1,
  +						 Patterns1,Acc1,EO1)
   			    end
   		    end
   	    end
  
positive.code: 	    {halt,Why,Rest};
  	NotFinished ->
  	    %% Get more data
  	    Fun = fun() -> get_data1(EO#eo.teln_pid) end,
  	    BreakAfter = if TotalTO < IdleTO -> TotalTO; true -> IdleTO end,
  	    case timer:tc(ct_gen_conn, do_within_time, [Fun, BreakAfter]) of
  		{_,{error,Reason}} -> 
  		    %% A timeout will occur when the telnet connection
  		    %% is idle for EO#eo.idle_timeout milliseconds.
  
negative.code: 
  teln_expect1(Name,Pid,Data,Pattern,Acc,EO=#eo{idle_timeout=IdleTO,
  					      total_timeout=TotalTO}) ->
      %% TotalTO is a float value in this loop (unless it's 'infinity'),
      %% but an integer value will be passed to the other functions
      EOMod = if TotalTO /= infinity -> EO#eo{total_timeout=trunc(TotalTO)};
  	       true                -> EO
  	    end,
  
      ExpectFun = case EOMod#eo.seq of
  		    true -> fun() ->
  				    seq_expect(Name,Pid,Data,Pattern,Acc,EOMod)
  			    end;
  		    false -> fun() ->
  				     one_expect(Name,Pid,Data,Pattern,EOMod)
  			     end
  		end,
      case ExpectFun() of
  