You should handle making new heartbeats after clearing blocks, not as you handle heartbeats