Added a simple refresh mecanism