Allow number of digits to be set with opt.length