Attempting to get the API controller stuff to work properly