Finding the footer by "9999" - mayby it should be found first, to use the packagelength.