Figure 7: Work state detection.