Implemented trigger for ModeState changes.  Closes #25