anchor.diff:              %% Received response from current request.
               %% Notify the requesting process
   			Requester ! {self(), Result},
  -            instance_manager_loop(RackPid, {busy, []}, WaitThreshold)
  +            instance_manager_loop(RackPid, {busy, []}, WaitThreshold);
  +		terminate -> 
  +            pg2:get_closest_pid(request_pool) ! terminate,
  +			instance_manager_loop(RackPid, {clogged, []}, WaitThreshold)
       end;
   instance_manager_loop(RackPid, {clogged, [_TimerRef | QueuedRequests]}, WaitThreshold) ->
       %% Send all requests queued in RequestList to be handled
  
positive.code:     end).
  
  stop_instance_managers(Count) ->
      %% TODO: Send terminate message to Count instance managers
      [pg2:get_closest_pid(request_pool) ! {self(), terminate} || _ <- lists:seq(1, Count)]. 
  
  %% Instance manager may be in one of three states: idle, busy, or clogged.
  %%   idle - the instance manager is not managing any requests
  
negative.code:             %% Received response from current request.
              %% Notify the requesting process
  			Requester ! {self(), Result},
              instance_manager_loop(RackPid, {busy, []}, WaitThreshold);
  		terminate -> 
              pg2:get_closest_pid(request_pool) ! terminate,
  			instance_manager_loop(RackPid, {clogged, []}, WaitThreshold)
      end.
  
  port_loop(Port, Timeout, Command) ->
  