Implementation of Window-Changing Detector