Changes to the library to add authentication