Add some api methods.