Updating set_state.php