Switching between walking and running implemented