Check the length instead of using magical large number.