Small fixes
Removed const getGains function