Rename nextData to newData.