Add function to reallocate hash