Replaced 'applied flag' with simpler accessor