Some minor optimizations + initialize the first "previous" amplification factor with the first intended amplification factor rather than 1.0.