https://mandie.net/2016/07/16/stupid-csanalogdevice-tricks/