Device state updating