Implemented clock based refreshing