Tweaked to allow forkCount to be overridden at the command line