Fixed LocalWalking.getLocalFlag(), and various other things.