WIP inverting machine failure algorithm.