Adding infrastructure for a better refresh system.
Test code for new better refresh.