Removed redundant hash computation.