Adds callback pattern to parseData