What's the loop? Why does package heartbeat need package machine?