Re-initializae variables for every cycle