Serializing and saving query strings.