Added cmd line functionality to speed.py