Adding heartbeat code, but don't use it until issues #261 and #282 are resolved on Astron/Astron