Added argument so we can log to a file instead