anchor.diff:        try_to_connect_to_new_instance(Bee, Attempts - 1)
     end.
     
  -% Update configuration for an application from a proplist of configuration details
  -update_app_configuration(ConfigProplist, App, State) ->
  +% Add an application based on it's proplist
  +add_application_by_configuration(ConfigProplist, UserEmail) ->
     case apps:new(ConfigProplist) of
  -    NewApp when is_record(App, app) ->
  -      apps:save(NewApp),
  -      State;
  +    NewApp when is_record(NewApp, app) ->
  +      {ok, _App} = apps:save(NewApp),
  +      {ok, _UserApp} = user_apps:create(UserEmail, NewApp),
  +      {ok, NewApp};
       E ->
  -      {error, invalid_app}
  -  end.
  -
  -% Add an application based on it's proplist
  -add_application_by_configuration(ConfigProplist, State) ->
  -  update_app_configuration(ConfigProplist, #app{}, State).
  +      {error, E}
  +  end.
   
   % Clean up applications
   clean_up() ->
  
positive.code:   app_killer_fsm:kill(P),  
    {noreply, State};
  
  
  handle_cast({request_to_terminate_bee, _Bee}, State) ->
    {noreply, State};
  
  
negative.code:          terminate/2, code_change/3]).
  
  -record(state, {
    queries = queue:new(),
    last_trans = 0
  }).
  
  -define (LAUNCHERS_APP_TO_PID, 'launchers_app_to_pid').
  