Implemented and fixed the ping timeout.