Wrap seenPages in a closure.