Docstring for this function, please. Below comment provides good basis.