Basic saving, and fixed bug when recent len is < maxrecents