Cleaned up the code a bit and made it only try fetching with 7 digit codes.