Adding a method to set the input gain.