Added functionality. Cumulative plots. Messy implementation