anchor.diff:    Request = [http_request , pure | prepare_parameters(Parameters)],
     InstanceManager ! {self(), {request, Request}},
     receive
  -    {_Source, {result, Result}} -> result_processor(Result);
  -    {_Source, {error, Result}} ->
  +    {InstanceManager, {result, Result}} -> result_processor(Result);
  +    {InstanceManager, {error, Result}} ->
         error_logger:info_msg("500 Internal Server Error: ~p~n", [Result]),
         {500, [], "Internal Server Error due to failed response."};
       Other ->
  
positive.code:           DB = binary_to_term(Result),
            case DB of
              {last_result, X} ->
                Source ! {self(), {result, X}},
                port_close(Port),
                exit(last_result);
              Z -> 
                Source ! {self(), Z}
            end
        after Timeout ->
          error_logger:error_msg("Port Wrapper ~p timed out in mid operation (~p)!~n", [self(),Req]),
  
negative.code: 
      %%Start rack application instances for the normal request pool 
      Cmd = lists:flatten(io_lib:format("bundle exec \"ruby ./ruby/src/rack_instance.rb -r ~s -e ~s\"", [AppRoot, RailsEnv])),
  	[spawn(?MODULE, init_instance_manager, [AppRoot, RailsEnv, Cmd, normal_pool]) || _ <- lists:seq(1, RequestPoolSize)],
      %%Start rack application instances for the backup request pool 
  	%[spawn(?MODULE, init_instance_manager, [AppRoot, RailsEnv, Cmd, normal_pool]) || _ <- lists:seq(1, BackupRequestPoolSize)],
      ok.
  
  init_instance_manager(AppRoot, RailsEnv, Cmd, RequestPool) ->
  