Added more stuff to api controller