Separated last commit code into connectBotPhantom
Code cleanup