added '-s' option to print out speed