Modify value generator to control file sizes more flexibly