Added a refresh thread.