Use a new thread to execute refresh in the background.