added tempo, exiting when we've processed all the files.