Updated to include functionality for Session Flash Messages.