Deprecated getFlashes.