Added some API functions