Minor style nitpick: It's common to use `bool listModified = false;` instead and IMHO nicer to read.