Rehydration code