Implemented refresh interval with timer.