Fix API stuff

Make this actually work