Revert file to original with additional fixes

- sh cannot use range {1..10}
- Added additional logging
Allow users to override the max procs