Started putting the events api together