Modified the way data is recieved from the Web API