Stav dette: Time variability of AGN and heating of cooling flows