Changing length detection