Remove unnecessary output to make suitable for a cron job