Updated logic for storing info hash.