Adding a separate slave thread to delete files and replenish them