Reworked how config is used, in preparation for allowing more flexible settings