Implements archiving

I have the interval set to 1 minute, so every minute, this script runs.