Fix build error
Add field for length adjustment and unit test to use it