Routine to fetch all flows, plus plots, still messy