N hash function support