Added functionality to place requests on API.