Writes properly named library.