Improved API for setting defaults.