Adds top-level API