Converted the library to use FromError