Add error/exception logging. Simplify API.