Modified definition of global variables to read-only