In the variable statement changed the name "curstate" to "cs" (the default