Fixed problem with data array keeping largest length/count. Now, gets reset (cleaned) on every iteration.