Write function docstring