Add Flush and refresh methods