Removed deprecated call for getFlashes