Added model, queue insert and api call for queue