Simplifying and fixing config_read().