Will need to try and implement sp.cumsum. Put in message as reminder.