Implemented more beautiful way to access to api methods