Added support for consecutive linear ramps.