Missing `det` parameter here.  But great docstring (great docstrings generally).