Edited bad looking 'read-hash-unique' function.