Added benchmark mode (passing -b as a command line parameter).