Fixed variable reference.  Needed to reference newData array.