$processed_items must be outside the loop, global for all the users