The call to withFrozenRendering can now be removed.