Add decay function

Add decay function to automatically reduce data values and remove unnecessary data elements.