Added flash messages.