Replaced offset with speed on line 118.