Please write doxygen doc for these new two functions.

Thanks.