Added `var` to prevent pollution of global scope