Final fix for today and output file