Update gain