Added example for connection handling.