Switched to 64-bit ints to make large tables work better.