The common functions library.