Declare state variables only once