`flag` variable for additional state, as mentioned above.