* Modifying gain implementation. Templates suck.