Added global variables to make changes easier