Maybe fixed syntax warning about global variable declaration.