Simplify agent heartbeat routine