Added pagefair code