Adding double hashing method