Adding the api base functions