Made global variables violate