Cleanup: removed unused reference to global variable.