Added random and per-task sampling scheduling policies and heartbeat