Move function and improve docstring