Improve log system