Extended flags.py to also check title history