Renamed variables to avoid confusion with Hash::keys.