Updated the library so that things are safe.