Add log length feature