anchor.diff:      end,
       RV.
   
  -prompt_the_password(EncryptedDataKey, State, StdIn, Try) ->
  -    ?log_debug("Waiting for the master password to be supplied. Attempt ~p", [Try]),
  +prompt_the_password(EncryptedDataKey, State, StdIn, Tries) ->
  +    prompt_the_password(EncryptedDataKey, State, StdIn, Tries, Tries).
  +
  +prompt_the_password(EncryptedDataKey, State, StdIn, Try, Tries) ->
  +    ?log_debug("Waiting for the master password to be supplied. Attempt ~p", [Tries - Try + 1]),
       receive
           {StdIn, M} ->
               ?log_error("Password prompt interrupted: ~p", [M]),
  
positive.code:     gen_server:reply(From, ok),
      ok.
  
  maybe_retry_prompt_the_password(_EncryptedDataKey, _State, _StdIn, ReplyTo, 1) ->
      gen_server:reply(ReplyTo, auth_failure),
      ?log_error("Incorrect master password!"),
      ns_babysitter_bootstrap:stop(),
      auth_failure;
  maybe_retry_prompt_the_password(EncryptedDataKey, State, StdIn, ReplyTo, Try) ->
      gen_server:reply(ReplyTo, retry),
      prompt_the_password(EncryptedDataKey, State, StdIn, Try - 1).
  
  set_password(Password, State) ->
      ?log_debug("Sending password to gosecrets"),
  
negative.code:                             confirm_set_password(From, P);
                          Error ->
                              ?log_error("Incorrect master password. Error: ~p", [Error]),
                              maybe_retry_prompt_the_password(EncryptedDataKey, State, StdIn, From, Try, Tries)
                      end
              end
      end.
  