Added a failure counter