Add support for descending Ids.

* API is changed
* Tests are updated

TODO:
* Update README