Added gain ramping