added logging to speed setting