Changed log threshold
Fixed special char handling
Save at exit