anchor.diff:              %% the front of the list.
               case lists:reverse(QueuedRequests) of
                   [] ->
  -			        instance_manager_loop(RackPid, {idle, []}, WaitThreshold);
  +			        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);
  +			        instance_manager_loop(RackPid, {busy, [{timer, NextTimerRef} | OtherRequests]}, WaitThreshold, _RubyCmd, {RequestCount+1, _MaxRequests});
                   [terminate] ->
                       done;
                   [terminate | _OtherRequests] ->
  
positive.code: 	end,
  
  	%% Begin instance manager loop
  	instance_manager_loop(RackPid, {idle, []}, WaitThreshold).
  	
  spawn_ruby_instance(Cmd) ->
      spawn(fun() ->
  
negative.code:     receive
  		{Requester, {request, Req}} -> 
              pg2:get_closest_pid(request_pool) ! {Requester, {request, Req}},
  			instance_manager_loop(RackPid, {clogged, []}, WaitThreshold, _RubyCmd, {RequestCount, _MaxRequests});
  		{RackPid, Requester, Result} -> 
              %% Received response from current request.
              %% Notify the requesting process
  			Requester ! {self(), Result},
              instance_manager_loop(RackPid, {busy, []}, WaitThreshold, _RubyCmd, {RequestCount+1, _MaxRequests});
  		terminate -> 
              pg2:get_closest_pid(request_pool) ! terminate,
  			instance_manager_loop(RackPid, {clogged, []}, WaitThreshold, _RubyCmd, {RequestCount, _MaxRequests})
      end.
  
  port_loop(Port, Timeout, Command) ->
  