Added crude protection for > max pages