anchor.diff:      echo.
       set /p PASS=Please enter your password: 
       
  -    start "simplewallet --wallet-file %FILE% --password %PASS% --rpc-bind-ip 127.0.0.1 --rpc-bind-port 18082"
  -    
       echo Launching simplewallet...
       echo.
  -    sleep 3
  -    echo ----------------------
       
  +    start "%PROGRAM_DIR%\simplewallet --wallet-file %FILE% --password %PASS% --rpc-bind-ip 127.0.0.1 --rpc-bind-port 18082 --daemon-address %USE_DAEMON%"
  +    
  +    echo Simplewallet should now be running in RPC mode. You can verify this by checking if
  +    echo your Chrome extension says "online". It may take a few seconds for the wallet to
  +    echo connect to simplewallet. If it fails to come online, please check your password
  +    echo and try again.
       echo.
  -    echo Returning wallet address:
  +    echo To shutdown simplewallet, choose 'Stop Wallet' in the extension's menu.
  +    echo.
  +    echo Thank you for using Monero Wallet for Chrome! You may now close this window.
  +    echo.
       
  -    if (curl --fail -X POST http://127.0.0.1:18082/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"getaddress"}' -H 'Content-Type: application/json'; then
  -        
  -        echo.
  -        echo.
  -        echo Simplewallet is now running in RPC mode. To shutdown simplewallet, choose 'Stop Wallet' in the extension's menu.
  -        echo.
  -        echo Thank you for using Monero Wallet for Chrome! You may now close this window.
  -        echo.
  -        
  -    ) else (
  -        
  -        echo.
  -        echo Please check if your extension shows that simplewallet online. If not,
  -        echo please check your password and try again.
  -        echo.
  -        
  -    )
   ) else (
       REM The first time this script is run, open the command line wallet.
       
  
positive.code: 
  @echo off
  cls
  set FILE=ChromeWallet.bin
  
  echo.
  echo ====================================================================================
  echo                             Monero Simplewallet Launcher
  echo.
  echo Copyright (c) 2016 bigreddmachine.
  echo Released under the MIT License as part of Monero Wallet for Chrome.
  echo https://github.com/monero-monitor/monero-wallet-chrome
  echo ====================================================================================
  echo.
  
  if exist %FILE% (
      REM If this script has been run previously, a wallet should already exist. Start it in RPC mode.
  
negative.code:     echo.
      echo ----------
      set /p NEWPASS=Please pick a password for your new wallet: 
      echo.
      set /p CONFIRM_NEWPASS=Confirm password: 
      if NOT %NEWPASS% == %CONFIRM_NEWPASS% (
          echo Your passwords do not match. Please restart the script and try again.
          echo.
          set /p userinput=Press "enter" to exit.
          exit
      ) 
      echo ----------
      echo.
      
      %PROGRAM_DIR%\simplewallet --generate-new-wallet %FILE% --password %NEWPASS%  --daemon-address %USE_DAEMON%
      
      echo.
      echo ----------
      echo.
      
      if exist %FILE% (
          echo Everything looks good. You can now start your wallet in RPC mode at any time by re-running this script.
          echo.
          set /p userinput=Press "enter" to exit Monero Simplewallet Launcher.
      ) else (
          echo There seems to have been an issue creating your wallet.
          echo.
          set /p userinput=Press "enter" to exit.
      )
  )
  
  echo.