Improve use of flash messages

Preparing the ground to solve #69.