Added queue and changed how API so that POST requests send in json objects