Update to check coded state against home state