Update library

Do we really need this function again?