Re-ordered setting peek state and call of set_speed to give set_speed time