Implemented some api methods