Fixing function call. Adding docstrings.