Merge matching code to new HashStdin routine.