Defines some of the api