Added ability to set default 'failFn'