Switched from the global variable to the local one
