Implement heartbeat

Closes #1 
Or Charter?