Added lambda to reset hash.