Improved setkeys.