Made the config make use of a defaults object for easy maintenance.