• Are you getting multiple files with different times in the name, or are you getting a single file which is being overwritten each time round the loop?