Updated cookie queries and checks.