WIP: Modified worker to sleep only if heartbeat from broker isn't received