Added support for flashed messages.