Just nitpicking but could rename `$settings` to `$config` for uniformity.