Add fail function.