Added check for P2P succesfull connection