Peer now can run code periodically.
Implemented ping/pong.