Updated function doc to latest API