Removed globals from remote.py.