Modified autorrent.py.