Added method for reallocating volatile resource.