Fixed error where variables in other modules don't have to be
declared global.