Addded ext. func. control to HDR
Improved switch off function