Added flag for changing number of hashes