Ping pong sending
Issue #12
Refactoring.

Fixes #12