Restructured the preamble so settings are easier to find.