Minor change to getTagList that might make it run more efficiently.