Adding option to save log files of important events.