Updated doc for functions