Refactoring refresh_all method