Made maxsubmitted into a command line parameter