This line is buggy since all_configs is being edited by this code.