Added semantical code for walking