Modified hashing method to match new one in API