Using a timer to do periodic updates