Enhances algorithm in case of failures