Added the ability to measure failures.