* Validate parameters.
* Add documentation.