Minimum length implemented in Main.