Updated with docstring.