Adds additional methods to the FlashMessages class.