Please add doxygen doc for this function.