Added call to updateDebugSettings in outer loop