Extracted method.