Added param to _generateHash function