Implements partial logic for cumulative sd in ROP.