Making tags iteration logic private.