Refactored into separate files.
Added dates to the output, so we can sort by most recent.