Could do with some comment / doctest.