Added in ability for the API to be called from outside sources