Add better/more documentation for the common functions.