A useful library of functions.