Cleaning up libraries