I don't think Flagg was necessary at all, and his death was just so anticlimactic if you've read all of King's works. I've pondered this for a long time, and the only thing I have come up with so far...