Implemented modifier latching.