Create state.sh