Use isdigit() to check for numbers in input.
Add a knob to set the max packets limit of the sandboxes.