Used unsigned integers in fors to quiet errors. Probably good practice for massive files, too.