anchor.diff:  	end,
   
   	%% Begin instance manager loop
  -	instance_manager_loop(RackPid, {idle, []}, WaitThreshold).
  +	instance_manager_loop(RackPid, {idle, []}, WaitThreshold, Cmd, {0, MaxRequests}).
   	
   spawn_ruby_instance(Cmd) ->
       spawn(fun() ->
  
positive.code: add_instance_managers(Count, SConf) ->
      RailsEnv = proplists:get_value("rails_env", SConf#sconf.opaque, "production"),
      WaitThreshold = list_to_integer(proplists:get_value("request_wait_threshold", SConf#sconf.opaque, "2000")),
  
      %%Get the rack application location
      AppRoot = case lists:reverse(SConf#sconf.docroot) of
  
negative.code:             %% the front of the list.
              case lists:reverse(QueuedRequests) of
                  [] ->
  			        instance_manager_loop(RackPid, {idle, []}, WaitThreshold, _RubyCmd, {RequestCount+1, _MaxRequests});
                  [{NextRequester, {request, NextRequest}} | OtherRequests] ->
                      RackPid ! {self(), NextRequester, {request, NextRequest}},
                      {ok, NextTimerRef} = timer:send_after(WaitThreshold, threshold_elapsed),    
  			        instance_manager_loop(RackPid, {busy, [{timer, NextTimerRef} | OtherRequests]}, WaitThreshold, _RubyCmd, {RequestCount+1, _MaxRequests})
              end;
          terminate ->
  			instance_manager_loop(RackPid, {busy, [{timer, TimerRef}, terminate | QueuedRequests]}, WaitThreshold, _RubyCmd, {RequestCount, _MaxRequests});
          threshold_elapsed ->
  			instance_manager_loop(RackPid, {clogged, [{timer, TimerRef} | QueuedRequests]}, WaitThreshold, _RubyCmd, {RequestCount, _MaxRequests})
  	end;
  instance_manager_loop(RackPid, {busy, QueuedRequests}, WaitThreshold, _RubyCmd, {RequestCount, _MaxRequests}) ->
  	receive
  		{Requester, {request, Req}} -> 
  			instance_manager_loop(RackPid, {busy, [{Requester, {request, Req}} | QueuedRequests]}, WaitThreshold, _RubyCmd, {RequestCount, _MaxRequests});
  		{RackPid, _Requester, _Result} -> 
              %% Begin processing the next request if there
              %% are any queued. Reverse the list of queued
  