Try auto length restriction and add tests.