First implementation of mitigation - inefficient