Dave Shinsel's Robot code for Loki and other robots