Attempted to optimize and fix walking problems