Changed Refresh method.