Or use the API in your code