Working on the small integer key gen