Modelled off of redditriver.py

the last part