Changed Network Connection Logic.