Improved library category adding