Update: implemented user-defined window length for calculation of rolling mean.