Add functionality to api.