Constant functions

* [ ] Fix tests
* [ ] Update docs