Compare states script