Added maximum length restriction.