Adding a ping() so we can ping outside of the regular loop, i.e. on a long running connection when I place a call, ping immediately. Also added a timeout to login of 10 seconds