Refresh data in a seperate thread.