Tweak rolling over code to create next file based on what is actually written to current.