Check that the done arg is applicable
Skip non-static elements in identifying codexpagetop
Call pagefn on final page