Added five functions to lib.