Copied over TeleopLogic code to get the class in the correct branch.