Added GLOBAL variable for clock dividing