Better documentation and error reporting.