This has the same function as pingedIn but faster and lighter