Please put this outside this inner for loop.