Fixes top-level API context.

Resolves #44