added new setting for max to process