-t now makes print output to terminal as well as log.txt