Moved PingManager code