An initial guess, change all of the Integer types to Long. Integer only holds up to 32,767, whilst longs go up to 2,147,483,647.