Continue to replace namedItem in the code