The leg works by redirecting nerves headed to the damaged muscle, to the hamstrings, and a nearby sensor that reads what the nerves are communicate.
youtube.com/watch