Implemented and tested emergency control.