Added function to clear old entries in 'downloaded'.