Declared global variables to pass CRAN check