Move CLI portion to own file. Remove cron stuff.