Updated code for new Day One file format