Need to pass the variables into global namespace for this to work properly