Added a walking algorithm