Mark module-level variables as var to pull out of global scope