Enhanced to read key settings.