Update avg_len calculator