Add Log model
improve efficiency of ics's generation
Log support