Added minimum and maximum length