Add last modified time variable (eg. $p->lastMod). Add fallback just in case the tags count not the same.