Added some api stuff