Document functions.