Updated some library functions.