Hacked library.py to remove global variable.