This should have a doctest