Increased the sampling rate and added recalculating baseline values
Improved performance with increased baseline value