Added timer code to shut the system down if stuck in a moving state for more than eleven seconds.