Added the ability to save the debug log.