Adds correct looping through response