Clearing queue tracking every 1000 items