Yo yo function added

Especially useful for walking animations and things like that.