Added two new functions to the api