3-wire ping stuff

This version works