Remove fixed backup intervals and add dynamic retain
Add and delete retain functions included.