Add core api features to root.
Refactor.