Added a rehashing API