Not assigning to a global.
Removed unused function.