Add config readers, and extract common code out of getters.