Updated configuration and gui generation code