Using a bool flag here did not work, hence the Set object.