Updated refresh method.