Added console log and save to text file changes.