Did some more work on CSV code. Need to write "time elapsed" into CSV each minute. This will have to be done on a single line, otherwise each minute will be written to a new line in the file. Perhaps this can be done by creating an index. Date might not work due to multiple entries (leaving for lunch, etc.).