Update function name and add some helpful comments.