Final update on the set_state.php-file