Writing to the library