Updated the return value when generating a hash.