Should set input failure mode before every call of the Library.