Added boolean reset for fence approach