Update state.php