getFlashes is not used any more.