Transform into library