Add logging, delete files older than 7 days. Recognize OS.