Looping over data recieved