Simplify and document top level API.