Add some convenient functions to the API