Moved retrieving the status to track to inside the for loop to improve performance