Included global variables to make consistent