Also, make driver more robust, by separating gain control (which often does not work) from main setup.