Added updateCounter logic, changed failure detector class (merged logic
in client class)