Defined the API