Added some doctest.