Adding support for randomly generated errors.