Gave heartbeat and command id control back to user code.

Closes #12