Add a decay function to reduce the number of failure.