Minor changes to cfg.c