Parameterized the max # of records that should be packed (optional).