Correctly alternating the ping/pong messages.