Corrected the issue with random walk. Added heartbeat.