Update docs to functions.